﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Data;

namespace Googlemaps_Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    [ServiceContract]
    public interface IService
    {
        [OperationContract]
        void NhanThongtin(int Malinhvuc, int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemKhachsan(int Maphanloai,string Ten,string GPS,string Diachi,string Quan,string Thanhpho, string Lienlac,string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemMuasam(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemGiaitri(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemAmthuc(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemLamdep(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemDulich(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemYte(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemTaichinh(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
        [OperationContract(IsOneWay = true)]
        void ThemGiaoduc(int Maphanloai, string Ten, string GPS, string Diachi, string Quan, string Thanhpho, string Lienlac, string Thongtin, string Avatar);
       
        //Lấy dữ liệu
        [OperationContract]
        DataTable Xemkhachsan(int Malinhvuc);
        
        //COnnection Database
      

        // TODO: Add your service operations here
    }

    // Use a data contract as illustrated in the sample below to add composite types to service operations
    [DataContract]
    public class Thuthap_Thongtin
    {
        [DataMember]
        public string Tenlinhvuc;
        [DataMember]
        public int Malinhvuc;
        [DataMember]
        public string Tenphanloai;
        [DataMember]
        public int Maphanloai;
        [DataMember]
        public string Ten;
        [DataMember]
        public string GPS;
        [DataMember]
        public string Diachi;
        [DataMember]
        public string Quan;
        [DataMember]
        public string Thanhpho;
        [DataMember]
        public string Lienlac;
        [DataMember]
        public string Thongtin;
        [DataMember]
        public string Avatar;

    }
    
}
